package br.com.panfleto.cadastro.model.persistence;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** @author Hibernate CodeGenerator */
public class TbMercadoFormaPgto implements Serializable {

	/** identifier field */
	private br.com.panfleto.cadastro.model.persistence.TbMercadoFormaPgtoPK comp_id;

	/** full constructor */
	public TbMercadoFormaPgto(
			br.com.panfleto.cadastro.model.persistence.TbMercadoFormaPgtoPK comp_id) {
		this.comp_id = comp_id;
	}

	/** default constructor */
	public TbMercadoFormaPgto() {
	}

	public br.com.panfleto.cadastro.model.persistence.TbMercadoFormaPgtoPK getComp_id() {
		return this.comp_id;
	}

	public void setComp_id(
			br.com.panfleto.cadastro.model.persistence.TbMercadoFormaPgtoPK comp_id) {
		this.comp_id = comp_id;
	}

	public String toString() {
		return new ToStringBuilder(this).append("comp_id", getComp_id())
				.toString();
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if (!(other instanceof TbMercadoFormaPgto))
			return false;
		TbMercadoFormaPgto castOther = (TbMercadoFormaPgto) other;
		return new EqualsBuilder().append(this.getComp_id(),
				castOther.getComp_id()).isEquals();
	}

	public int hashCode() {
		return new HashCodeBuilder().append(getComp_id()).toHashCode();
	}

}
